package com.ahclic.db.dao;
import java.util.List;

import org.apache.ibatis.annotations.Insert;

import com.ahclic.db.bean.*;
public interface MessageDao {
	
	public void createTbl();
	/*
	@Insert("Create table if not exists  `message` ("+
			"  `message_id` int(11) NOT NULL AUTO_INCREMENT,"+
			"  `type` int(11) DEFAULT NULL,"+
			"  `second_type` int(11) DEFAULT NULL,"+
			"  `message_date` varchar(50) DEFAULT NULL,"+
			"  `message_time` bigint(20) DEFAULT NULL,"+
			"  `from_user_id` int(11) DEFAULT NULL,"+
			"  `from_user_name` varchar(50) DEFAULT NULL,"+
			"  `user_id` int(11) NOT NULL,"+
			"  PRIMARY KEY (`message_id`));"
			)
    */
	public void createTbl2();
   public void insMsg(MessageBean msg);
   public List<MessageBean> getMsg(long userid);
}
